Optimal. Leaf size=117 \[ \frac{i \text{PolyLog}\left (2,-i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{i \text{PolyLog}\left (2,i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{a x+1}} (a x+1) \text{sech}^{-1}(a x)}{3 a^2}-\frac{2 \text{sech}^{-1}(a x) \tan ^{-1}\left (e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0970499, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {6285, 5418, 4185, 4180, 2279, 2391} \[ \frac{i \text{PolyLog}\left (2,-i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{i \text{PolyLog}\left (2,i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{a x+1}} (a x+1) \text{sech}^{-1}(a x)}{3 a^2}-\frac{2 \text{sech}^{-1}(a x) \tan ^{-1}\left (e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6285
Rule 5418
Rule 4185
Rule 4180
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int x^2 \text{sech}^{-1}(a x)^2 \, dx &=-\frac{\operatorname{Subst}\left (\int x^2 \text{sech}^3(x) \tanh (x) \, dx,x,\text{sech}^{-1}(a x)\right )}{a^3}\\ &=\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2-\frac{2 \operatorname{Subst}\left (\int x \text{sech}^3(x) \, dx,x,\text{sech}^{-1}(a x)\right )}{3 a^3}\\ &=-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{1+a x}} (1+a x) \text{sech}^{-1}(a x)}{3 a^2}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2-\frac{\operatorname{Subst}\left (\int x \text{sech}(x) \, dx,x,\text{sech}^{-1}(a x)\right )}{3 a^3}\\ &=-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{1+a x}} (1+a x) \text{sech}^{-1}(a x)}{3 a^2}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2-\frac{2 \text{sech}^{-1}(a x) \tan ^{-1}\left (e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}+\frac{i \operatorname{Subst}\left (\int \log \left (1-i e^x\right ) \, dx,x,\text{sech}^{-1}(a x)\right )}{3 a^3}-\frac{i \operatorname{Subst}\left (\int \log \left (1+i e^x\right ) \, dx,x,\text{sech}^{-1}(a x)\right )}{3 a^3}\\ &=-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{1+a x}} (1+a x) \text{sech}^{-1}(a x)}{3 a^2}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2-\frac{2 \text{sech}^{-1}(a x) \tan ^{-1}\left (e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}+\frac{i \operatorname{Subst}\left (\int \frac{\log (1-i x)}{x} \, dx,x,e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{i \operatorname{Subst}\left (\int \frac{\log (1+i x)}{x} \, dx,x,e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}\\ &=-\frac{x}{3 a^2}-\frac{x \sqrt{\frac{1-a x}{1+a x}} (1+a x) \text{sech}^{-1}(a x)}{3 a^2}+\frac{1}{3} x^3 \text{sech}^{-1}(a x)^2-\frac{2 \text{sech}^{-1}(a x) \tan ^{-1}\left (e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}+\frac{i \text{Li}_2\left (-i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}-\frac{i \text{Li}_2\left (i e^{\text{sech}^{-1}(a x)}\right )}{3 a^3}\\ \end{align*}
Mathematica [A] time = 0.231495, size = 138, normalized size = 1.18 \[ \frac{i \text{PolyLog}\left (2,-i e^{-\text{sech}^{-1}(a x)}\right )-i \text{PolyLog}\left (2,i e^{-\text{sech}^{-1}(a x)}\right )+a^3 x^3 \text{sech}^{-1}(a x)^2-a x-a x \sqrt{\frac{1-a x}{a x+1}} (a x+1) \text{sech}^{-1}(a x)+i \text{sech}^{-1}(a x) \log \left (1-i e^{-\text{sech}^{-1}(a x)}\right )-i \text{sech}^{-1}(a x) \log \left (1+i e^{-\text{sech}^{-1}(a x)}\right )}{3 a^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.325, size = 240, normalized size = 2.1 \begin{align*}{\frac{{x}^{3} \left ({\rm arcsech} \left (ax\right ) \right ) ^{2}}{3}}-{\frac{{\rm arcsech} \left (ax\right ){x}^{2}}{3\,a}\sqrt{-{\frac{ax-1}{ax}}}\sqrt{{\frac{ax+1}{ax}}}}-{\frac{x}{3\,{a}^{2}}}+{\frac{{\frac{i}{3}}{\rm arcsech} \left (ax\right )}{{a}^{3}}\ln \left ( 1+i \left ({\frac{1}{ax}}+\sqrt{{\frac{1}{ax}}-1}\sqrt{1+{\frac{1}{ax}}} \right ) \right ) }-{\frac{{\frac{i}{3}}{\rm arcsech} \left (ax\right )}{{a}^{3}}\ln \left ( 1-i \left ({\frac{1}{ax}}+\sqrt{{\frac{1}{ax}}-1}\sqrt{1+{\frac{1}{ax}}} \right ) \right ) }+{\frac{{\frac{i}{3}}}{{a}^{3}}{\it dilog} \left ( 1+i \left ({\frac{1}{ax}}+\sqrt{{\frac{1}{ax}}-1}\sqrt{1+{\frac{1}{ax}}} \right ) \right ) }-{\frac{{\frac{i}{3}}}{{a}^{3}}{\it dilog} \left ( 1-i \left ({\frac{1}{ax}}+\sqrt{{\frac{1}{ax}}-1}\sqrt{1+{\frac{1}{ax}}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \operatorname{arsech}\left (a x\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (x^{2} \operatorname{arsech}\left (a x\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \operatorname{asech}^{2}{\left (a x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \operatorname{arsech}\left (a x\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]